package com.unicom.office.var;

import com.unicom.office.config.ConfigItem;
import com.unicom.office.dataitem.DataItem;
import com.unicom.office.type.TypeItem;

public abstract class VarItem extends ConfigItem {
    public abstract TypeItem getTypeItem();

    public VarItem(String name) {
        super(name);
    }

    public abstract DataItem createDataItem(Object value);

    private Object defaultValue;

    public Object getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(Object defaultValue) {
        this.defaultValue = defaultValue;
    }

    public abstract Object getFormatedValue(Object value);
}
